package com.gitee.tje.waving.beans.property;

/**
 * 配置项
 *
 * @author taojiaen
 * @date 2018-01-08 08:29
 */
public class PropertyValue {
    public final String field;
    public final Object value;

    public PropertyValue(String field, Object value) {
        this.field = field;
        this.value = value;

    }


    @Override
    public boolean equals(Object obj) {
        return obj instanceof PropertyValue && field.equals(((PropertyValue) obj).field);
    }

    @Override
    public int hashCode() {
        return field.hashCode();
    }
}
